import java.util.Arrays;

public class Test {
    public static void main(String[] args) {
        int[] array = {27,15,19,18,28,34,65,49,25,37};
        MyPriorityQueue myPriorityQueue = new MyPriorityQueue();
        myPriorityQueue.createElem(array);
        myPriorityQueue.createHeap();
        System.out.println(Arrays.toString(myPriorityQueue.elem));
        myPriorityQueue.push(99);
        System.out.println(Arrays.toString(myPriorityQueue.elem));
        myPriorityQueue.pollHeap();
        System.out.println(Arrays.toString(myPriorityQueue.elem));
        myPriorityQueue.heapSort();
        System.out.println(Arrays.toString(myPriorityQueue.elem));

    }
}
